package com.yuntai.pms.model.dto.system;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

/**
 * @Description：redis实体
 * @Author:ytxuty
 * @Date:2019/1/28
 * @Time:11:27
 * @Company:恒生芸泰公司
 * @Copyright:版权归hsyuntai 所有
 * @Version:0.0.1
 */
@Data
public class RedisDto implements Serializable {
    private static final long serialVersionUID = 609209773562691462L;
    private String key;
    private String excuteType;
    private String valueType;
    private String resultType;
    private Integer start;
    private Integer stop;
    private String dbSource;
    private Long len;

    private String value;
    private int seconds;
    private Map<Object, Object> map;
    private Collection<String> list;
    private String[] set;
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
